<h4>Tool</h4><table border="0"><tr><td valign="top"><b>Name</b></td><td valign="top">Binary Erosion-Reconstruction</td></tr><tr><td valign="top"><b>ID</b></td><td valign="top">13</td></tr><tr><td valign="top"><b>Author</b></td><td valign="top">HfT Stuttgart (c) 2013</td></tr><tr><td valign="top"><b>Specification</b></td><td valign="top">grid</td></tr></table><hr><h4>Description</h4>Common binary Opening does not guarantee, that foreground regions which outlast the erosion step are reconstructed to their original shape in the dilation step. Depending on the application, that might be considered as a deficiency. Therefore this tool provides a combination of erosion with the binary Geodesic Morphological Reconstruction, see 
L. Vincent (1993): Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms. IEEE Transactions on Image Processing, Vol. 2, No 2
Here we use the algorithm on p. 194: Breadth-first Scanning.

The marker is defined as the eroded INPUT_GRID, whereas the mask is just the INPUT_GRID itself. OUTPUT_GRID is the reconstruction of the marker under the mask.
<hr><h4>Parameters</h4><table border="1" width="100%" valign="top" cellpadding="5" rules="all"><tr><th>Name</th><th>Type</th><th>Identifier</th><th>Description</th><th>Constraints</th></tr>
<tr><th colspan="5">Input</th></tr><tr><td>Input Grid </td><td>Grid (input)</td><td>INPUT_GRID</td><td>Grid to be filtered</td><td></td></tr><tr><th colspan="5">Output</th></tr><tr><td>Output Grid</td><td>Grid (output)</td><td>OUTPUT_GRID</td><td>Reconstruction result</td><td></td></tr><tr><th colspan="5">Options</th></tr><tr><td>Filter Size (Radius)</td><td>Integer</td><td>RADIUS</td><td>Filter size (radius in grid cells)</td><td>Default: 3</td></tr></table>